﻿using CRMG.Container.Source.Variables;
using System.Drawing;
using System.Globalization;
using System.Threading;
using System.Windows.Forms;

namespace CRMG.Container.Views.BaseList
{
    public partial class FrmBase : Telerik.WinControls.UI.RadForm
    {
        private Font uiFont = new Font("Segoe UI", 10.0f, FontStyle.Regular);

        public FrmBase()
        {
            InitializeComponent();
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(AppVariables.ApplicationCulture);
            this.Width = Screen.PrimaryScreen.WorkingArea.Width;
            this.Height = Screen.PrimaryScreen.WorkingArea.Height;
            this.WindowState = FormWindowState.Maximized;
        }

        /// <summary>
        /// Gets User Interface Font.
        /// </summary>
        public Font UIFont
        {
            get
            {
                return uiFont;
            }
        }
    }
}
